package com.renyr.client;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = FileServer.FILE_CLIENT)
class FileServer {

    static final String FILE_CLIENT = "file-server";

    private String ip = "http://localhost";
    private int port = 8448;
    private String fileType = "img";
    private String method = "saveImg";

    /**
     * "http://127.0.0.1:8448/img/saveImg"
     * @return
     */
    String getFileClient() {
        String url = ip + ":" + port + "/" + fileType + "/" + method;
        return url;
    }


}
